const { $wx, $http } = getApp()
Page({
    data: {
        formData: [
            { label:'姓名', name:'name', r:1, maxLen:4 },
            { label:'电话', name:'phone', r:1  },
            { label:'备注', name:'mark', type:'textarea'}
        ],
    },
    onSubmit({ detail }){
        // let { phone, nickname } = $wx.getUser()
        $http.post(this,'economic', {
            // param:{ phone, nickname, ...detail},
            param: detail,
            okText: '提交成功',
        }).then(()=>{
            $wx.back_refresh('economic')
        })
    }
})